package bat.ke.qq.com.service.impl;


import bat.ke.qq.com.bean.User;
import bat.ke.qq.com.core.APIMapping;
import bat.ke.qq.com.core.security.ApiRequest;
import bat.ke.qq.com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

/**
 * 源码学院-Fox
 * 只为培养BAT程序员而生
 * http://bat.ke.qq.com
 * 往期视频加群:516212256 暗号:6
 */
@Service
public class UserServiceImpl implements UserService {

    // 无缝集成   http://localhost:8080/api?method=bat.api.user.getUser&params={userId:11}
    @APIMapping(value = "bat.api.user.getUser")
    @Override
    public User getUser(Long userId) {

        User info = new User();
        info.setName("Fox");
        info.setSex("男");
        info.setUserId(userId);
        info.setIdcard("430xxxxx");

        return info;
    }



}
